package com.example.test.mapper;

import com.example.test.bean.domain.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserAddressMapper {
	int insertAddress(UserAddress userAddress);

	int updateAddress(UserAddress userAddress);

	int deleteAddress(@Param("id") Integer id, @Param("userId") Integer userId);

	List<UserAddress> getAddressById(@Param("userId") Integer userId);

	List<UserAddress> getAllAddresses();
}
